package edu.hawaii.client;

/**
 * Campus object that consists of a campus name and
 * its code. Like AvailableSeatsBySection.java its data is retrived by procedure call
 * [ReportServer_ShortCourseNamesBySemesterAndCampus_proc] by ObjectFactory.java .
 * 
 * @author Kiet Huynh
 * @author brandon lee
 */
public class Campus {
  
  private String campusName;
  private String campusCode; // The first 3 letter of the campus name in uppercase.
  
  /**
   * Initiates a campus object with a name and a code.
   * @param newCampusName A campus name.
   * @param newCampusCode A campus code.
   */
  public Campus(String newCampusName, String newCampusCode) {
    this.campusName = newCampusName;
    this.campusCode = newCampusCode;
  }
  /**
   * Returns the name of campus.
   * @return The name of the campus.
   */
  public String getCampusName() {
    return this.campusName;
  }
  
  /**
   * Sets campus name.
   * @param newCampusName The new campus name.
   */
  public void setCampusName(String newCampusName) {
    this.campusName = newCampusName;
  }
  
  /**
   * Returns the campus code.
   * @return The campus code.
   */
  public String getCampusCode() {
    return this.campusCode;
  }
  
  /**
   * Sets the campus code.
   * @param newCampusCode The new campus code.
   */
  public void setCampusCode(String newCampusCode) {
    this.campusCode = newCampusCode;
  }
}
